package soar.template.springboot.service.hello.controller;

import javax.annotation.Resource;
import javax.persistence.EntityManagerFactory;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.scheduling.concurrent.ThreadPoolExecutorFactoryBean;

import soar.template.springboot.service.hello.appconfig.AppConfig;

public class BaseService
{
    @Resource(name="appconfig")
    protected AppConfig appConfig;
    
    @Resource(name = "mainEntityManagerFactory")
    protected EntityManagerFactory mainEntityManagerFactory;

    @Resource(name = "logEntityManagerFactory")
    protected EntityManagerFactory logEntityManagerFactory;

    @Resource(name = "mainRedisConnectionFactory")
    protected RedisConnectionFactory mainRedisConnectionFactory;

    @Resource
    protected ThreadPoolExecutorFactoryBean executorFactory;

    @Resource(name = "mainRabbitTemplate")
    protected RabbitTemplate mainRabbitTemplate;
}
